package cn.jiangjiesheng.bootstrap.commons.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * Created by dev@jiangjiesheng.cn on 2020/5/21  <br/>
 * <p>
 * 配置MongoDB
 */
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "datasource.mongo")
@Data
public class MongoProperties implements IProperties {

    private String hosts;

    private String user;

    private String password;

    private String ports;

    private String database;

    private Integer connectionsPerHost;

    private Integer minConnectionsPerHost;

}
